import httpInstance from '@/utils/https.js'




export const getTopCategoryApi = (id) => {
  return httpInstance({
    url:"/category",
    params: {
      id ,
    }
  })
}


//获取分类过滤的数据
export const getCategoryFilterApi = (id) => {
  return httpInstance({
    url:"/category/sub/filter",
    params:{
      id
    }
  })
}


// 获取导航数据
export const getSubCategoryApi = (data) => {
  return httpInstance({
    url:"/category/goods/temporary",
    method:'POST',
    data
  })
}

